import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-attr-bind',
    templateUrl: './attr-bind.component.html',
    styleUrls: ['./attr-bind.component.less']
})
export class AttrBindComponent implements OnInit {

    str = "网博";
    arr = [1, 2, 3];

    user = {
        name: "tom",
        age: 23
    }

    arg1 = null;
    arg2 = undefined;

    flag = null;

    ClassArr = ["fc", "fs", "border", "bc"];
    classObj = {
        // key:value
        fc: false,
        border: true,
        bc: false,
        fs: true
    }
    styleObj = {
        color: "red",
        "background-color": "#ccc",
        fontSize: "20px"
    }
    constructor() { }

    ngOnInit() {
    }

}
